package com.commerce.service;


import com.commerce.page.Page;

import javax.servlet.http.HttpServletRequest;

/**
 * @author wyj
 * @Title:
 * @Description:
 */
public interface BeanService<E> {

    /**
     * 新增
     * @param e
     * @return
     */
    String insert(E e , HttpServletRequest request);

    /**
     * 修改
     * @param e
     * @return
     */
    String update(E e, HttpServletRequest request);

    /**
     * 根据ID删除
     * @param id
     * @return
     */
    String deleteById(int id);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    E selectById(int id);

}
